package ca.uwo.android.alumni;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import ca.uwo.android.BaseMenuActivity;
import ca.uwo.android.R;


/**
 * Activity related to the Alumni Homecoming page which is a static page 
 * with a link to an external HomeComing web page.
 * @author tracyg
 *
 */
public class AlumniHomecoming extends BaseMenuActivity {

	
	/**
	 * Called when the activity is first created.
	 */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.alumni_homecoming); // set layout
	}

	/**
	 * This method is called when the "Learn more about the Campaign" button is
	 * clicked. It redirects the user to a site explaining how their
	 * contributions are put to good use.
	 * 
	 * @param v
	 *            the button view that is clicked
	 */
	public void onHomecomingLearnMoreButtonClick(View v) {

		// show url in browser
		Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.alumni_homecoming_link)));
		startActivity(browser);
	}

}
